home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / ODFDev / ODF / Examples / Table / Include / TblProxy.h < prev    next >
Encoding:
Text File  |  1995-11-08  |  2.8 KB  |  97 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                TblProxy.h
  4. //    Release Version:    $ 1.0d11 $
  5. //
  6. //    Copyright:    © 1995 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef TBLPROXY_H
  11. #define TBLPROXY_H
  12.  
  13. #ifndef TBLPART_H
  14. #include "TblPart.h"
  15. #endif
  16.  
  17. // ----- ODF Includes -----
  18.  
  19. #ifndef FWPROXY_H
  20. #include "FWProxy.h"
  21. #endif
  22.  
  23. //========================================================================================
  24. //    Forward declarations
  25. //========================================================================================
  26.  
  27. class FW_CLASS_ATTR CTablePart;
  28.  
  29. //========================================================================================
  30. //    class CTableProxy
  31. //========================================================================================
  32.  
  33. class FW_CLASS_ATTR CTableProxy : public FW_MProxy
  34. {
  35. public:
  36.  
  37. //----------------------------------------------------------------------------------------
  38. //    Initialization/Destruction
  39. //
  40.   public:
  41.     CTableProxy(Environment* ev, CTablePart* tablePart, FW_CPresentation* presentation);
  42.     virtual ~ CTableProxy();
  43.  
  44. //----------------------------------------------------------------------------------------
  45. //    Inherited API
  46. //
  47.     virtual void         UsedShapeChanged(Environment *ev,
  48.                                       FW_CEmbeddingFrame* embeddingFrame,
  49.                                       ODFrame* odEmbeddedFrame);
  50.  
  51.     virtual ODShape*     FrameShapeRequested(Environment* ev, 
  52.                                     ODFrame* odEmbeddedFrame, 
  53.                                     ODShape* askedFrameShape);
  54.  
  55. //----------------------------------------------------------------------------------------
  56. //    New API
  57. //
  58.   public:
  59.     void                MoveEmbeddedFrames(Environment* ev, const CCell& destCell);
  60.  
  61.     void    ChangeLinkStatus(Environment* ev, ODLinkStatus linkStatus);
  62.  
  63.     // ----- Getters/Setters -----
  64.     const CCell&         GetCell() const;
  65.     void                SetCell(const CCell& cell);    
  66.     
  67. //----------------------------------------------------------------------------------------
  68. //    Data Members
  69. //
  70.   protected:
  71.     CTablePart*        fTablePart;
  72.     CCell            fCell;
  73.  
  74. };
  75.  
  76. //========================================================================================
  77. //    CTableProxy Inlines
  78. //========================================================================================
  79.  
  80. //----------------------------------------------------------------------------------------
  81. //    CTableProxy::GetCell
  82. //----------------------------------------------------------------------------------------
  83. inline const CCell& CTableProxy::GetCell() const
  84. {
  85.     return fCell;
  86. }
  87.  
  88. //----------------------------------------------------------------------------------------
  89. //    CTableProxy::SetCell
  90. //----------------------------------------------------------------------------------------
  91. inline void CTableProxy::SetCell(const CCell& cell)
  92. {
  93.     fCell = cell;
  94. }
  95.  
  96. #endif
  97.